package com.sale.table.controller;

import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import com.sale.table.domain.dto.PurchasePaymentDto;
import com.sale.table.domain.vo.PurchasePaymentVo;
import com.sale.table.service.PurchasePaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 采购付款一览表控制层
 */
@RestController
@RequestMapping("/purchase-payment")
public class PurchasePaymentController {

    @Resource
    PurchasePaymentService purchasePaymentService;

    /**
     * 采购付款一览表列表
     */
    @GetMapping("/purchasePaymentList")
    public TableDataInfo<PurchasePaymentDto> purchasePaymentList(PurchasePaymentVo purchasePaymentVo, PageQuery pageQuery) {
        return purchasePaymentService.purchasePaymentList(purchasePaymentVo, pageQuery);
    }
}
